package tools;

import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.JProgressBar;
import javax.swing.border.Border;

import starter.AppStarter;

import com.thehowtotutorial.splashscreen.JSplash;

public class SplashFace {

	public void SplashFace(){

		try {
			JSplash splash = new JSplash(AppStarter.class.getResource("/tools/images/hahaha.jpg"), true, true, false, null, Color.green);
			splash.splashOn();
			splash.setProgress(20, "Laden van docenten & leerlingen");
			Thread.sleep(600);
			splash.setProgress(40, "Database laden");
			Thread.sleep(600);
			splash.setProgress(60, "Vragen laden");
			Thread.sleep(600);
			splash.setProgress(80, "Antwoorden laden");
			Thread.sleep(600);
			splash.setProgress(1000, "Succes!");
			Thread.sleep(600);
			splash.splashOff();

		} catch (Exception e) {
			e.printStackTrace();
		}

	}
	
	public void LoadAccounts(){
		try {
			JSplash splash = new JSplash(AppStarter.class.getResource("/tools/images/Questionmark.png"), true, true, false, null, Color.green);
			splash.splashOn();
			splash.setProgress(20, "Uw gegevens controleren");
			Thread.sleep(600);
			splash.setProgress(1000, "U bent nu ingelogd!");
			Thread.sleep(600);
			splash.splashOff();

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
